package com.zl.rbac.entity;/**
 * @author suke
 * @create 2021-01-08 0:02
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Objects;

/**
 * 权限
 * @ClassName: Permission
 * @author: suke
 * @since: 2021/1/8 0:02
 */
@Data
@TableName("tb_permission")
public class Permission  extends BaseEntity{
    private String expression;
    private String name;

   /* @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Permission)) return false;
        if (!super.equals(o)) return false;
        Permission that = (Permission) o;
        return Objects.equals(expression, that.expression) &&
                Objects.equals(name, that.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), expression, name);
    }*/
}
